#include <stdio.h>
#include <stdlib.h>

/* author - Amrita Mukherjee
   e-mail - m.amrita@gmail.com
   lab - 3b*/
int main(void)
{
    double* x;
	double a;
	
	double** y;
	double* p;
	double b;
	
	double c;
	double* q;
	double** r;
	double*** z;

	x = &a;

	p = &b;
	y = &p;

	q = &c;
	r = &q;
	z = &r;

	//a = 3.5;
	//b = 4.5;
	printf("Please enter a number for a: ");
	scanf("%lf", &a);
	printf("Please enter a number for b: ");
	scanf("%lf", &b);

	//printf("%d %d", *x, **y);

	***z = (*x) * (**y);

	printf("%.2lf  *  %.2lf =  %.2lf", a, b, c);

	printf("\nThis Program is written by : Amrita Mukherjee\nLab: 3\ne-mail: m.amrita@gmail.com\n");

    return 0;

}
/* 
My test session 1:
Please enter a number for a: 35.7
Please enter a number for b: 27.5
35.70  *  27.50 =  981.75
This Program is written by : Amrita Mukherjee
Lab: 3
e-mail: m.amrita@gmail.com

My test session 2:
Please enter a number for a: 171.67
Please enter a number for b: 200.7
171.67  *  200.70 =  34454.17
This Program is written by : Amrita Mukherjee
Lab: 3
e-mail: m.amrita@gmail.com

*/
